    <div class="navbar navbar-inverse navbar-fixed-top">
      <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
<?php            // pr($websiteSettings['website_name']); 
echo  $this->Html->Link(__($websiteSettings['website_name']), array('plugin'=>false,'controller' => 'properties', 'action' => 'index'), array("class"=>"navbar-brand")); ?>

        </div>
        <div class="collapse navbar-collapse">
          <ul class="nav navbar-nav">
<?php foreach($availableLanguages as $key=>$value) {
    $link = $this->Html->Link($value, array('plugin'=>false,'controller' => 'pages', 'action' => 'changeLanguage', $key));
    echo $this->Html->Tag('li', $link, array('class' => $key == $language ? 'active' : ''));
} ?>
          </ul>
        </div><!--/.nav-collapse -->
      </div>
    </div>
	<?php ?>